package com.lizhe.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lizhe.mybatisplus.model.Article;
import org.apache.ibatis.annotations.Param;

/**
 * @author lz
 * @create 2021-10-28
 */
public interface ArticleMapper extends BaseMapper<Article> {

    Page<Article> findByAll(@Param("page") Page<Article> page, @Param("article") Article article);

    int deleteByPrimaryKey(Integer id);

    // int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
}
